package hy;

public class Boss implements  Secretary{
    Secretary s;
    Boss(){
        this.s = new SecretaryImp();
    }
    @Override
    public void printPaper() {
        long begin = System.currentTimeMillis();
        s.printPaper();
        long end = System.currentTimeMillis();
        System.out.println("共用时："+(end-begin));
    }
}
